private int[] getAround(int[][] temp, int x, int y) {
		int[] around = new int[9];
		int i = 0;
		for(int xLoop = x-1; xLoop <= x+1; xLoop++) {
			for(int yLoop = y-1; yLoop <= y+1; yLoop++) {
				around[i] = validPosition(temp, xLoop, yLoop) ? temp[xLoop][yLoop] : USED;
				i++;
			}
		}
		return around;
	}