Returns the type of the tile in
GridType format specified by given coordinates.
the x-coordinate of needed tile
the y-coordinate of needed tile
type of the needed tile as
Helping method that tells if the game is ended.
true if the game has finished, otherwise
Moves the player in the specified location (if it is possible).
the x-coordinate where player is trying to move
the y-coordinate where player is trying to move
true if move successful, otherwise
Another version of
startOver method that takes a new game field file as an
the file containing details of the new field
Returns the state of the game field to the state that it was in the beginning of the game.