Refactored - Only one call to getNeighbors(), now dead neighbors are only calculated once.