// checks if board macthes goal public bool isGoal(Node n) { return(n.getState().getcurrentBoard().SequenceEqual(goal)); }
//equals method to check wether state of 2 boards are equal public bool Equals(Node n) { return(n.getState().getcurrentBoard().SequenceEqual(this.getState().getcurrentBoard())); }