Added isValidMove test.