Add error handling on user input

Enhance handling when user input a tile outside of the game board.
Was previously done with the incorrect m > m case (instead of m > y).