Made Group::isAdjacent slightly more efficient
Changed Board::updateStructures to be more efficient