you need also move the boxes in the certain places, if there is a transparent marking near the box(same sprite as box). and after placing the box in the right place, you will be declared the winner.