public static int countNeighbours(boolean[][] world, int col, int row) {
		int c = 0;
		if (getCell(world, col - 1, row - 1) == true) {
			c += 1; 
		}
		if (getCell(world, col, row - 1) == true) {
			c += 1; 
		}
		if (getCell(world, col + 1, row - 1) == true) {
			c += 1; 
		}
		if (getCell(world, col - 1, row) == true) {
			c += 1; 
		}
		if (getCell(world, col + 1, row) == true) {
			c += 1; 
		}
		if (getCell(world, col - 1, row + 1) == true) {
			c += 1; 
		}
		if (getCell(world, col, row + 1) == true) {
			c += 1; 
		}
		if (getCell(world, col + 1, row + 1) == true) {
			c += 1; 
		}
		return c;
	}