Debugging isValidMove