On the same track as “fifteen puzzle”, the game’s aim is to enclose all the sheep on the screen inside the fence as quickly as possible with the least moves possible.

http://appshopper.com/games/sheep-farm