Modified valid move check

Changed method for checking for valid integers; still unable to find way
to catch other characters as invalid input.