Input error handling

Improved input error handling for the initial board and for user moves.