It follows your cursor. Catch the presents. If 3 presents touch the edge you lose.
All art and code by me