Fix the game so it doesn't crash when you go beyond the game board boundaries