Fixed bugs in Datastructure.java & BoardDS.java.