Refactored in_invalid_move a little more