fixed issue with inputting moves outside the range of the board