Free all the cats from their cages! You can drag all cats, except the caged ones to make a column or a row of three or more identical cats. These will disappear, freeing the cats that are behind bars. Make sure that you get the job done before the entire grid is filled with cats!
Hold the left mouse button while dragging a cat and release it there, where you want to drop the cat.