Crane Game
Problem Jordi, a game developer, wants to make a crane puppet machine into a mobile game. In order to increase the fun of the game, Jordi tries to reflect the screen composition and rules in the game logic as follows. The game screen is an N x N square grid of 1 x 1 squares with a crane on the top…