modified main and getInt

main now loops, and getInt has extra error checking to ignore numbers
that are out of bounds of the board