public int adjacentLivesCount(int xIndex, int yIndex) {
		int total = 0;
		if(areInBounds(xIndex-1,yIndex-1)) total+=1;
		if(areInBounds(xIndex-1,yIndex)) total+=1;
		if(areInBounds(xIndex-1,yIndex+1)) total+=1;
		if(areInBounds(xIndex,yIndex-1)) total+=1;
		if(areInBounds(xIndex,yIndex+1)) total+=1;
		if(areInBounds(xIndex+1,yIndex-1)) total+=1;
		if(areInBounds(xIndex+1,yIndex)) total+=1;
		if(areInBounds(xIndex+1,yIndex+1)) total+=1;
		return total;
	}