public bool isGoalState(Object state) { EightPuzzleBoard board = (EightPuzzleBoard)state; return board.Equals(goal); } }