make sure the input move is valid before moving a piece on the board
make sure the input move is valid before moving a piece on the board