refactored all but calcTargets and calcAdjacencies in board