The number of moves in which you have to win the game is dependent upon both the selected difficulty and the grid size.