isValidMove should work correctly