Updated calcAdjancencies and passing all tests