Added border cases to class GameEngine.

Added border cases to class GameEngine. Player can't escape the
labyrinth