Validate if the move is valid