Added index test for adjacentLivingCells and code to make them pass