private static boolean checkRoute(int[] pos) {
		if(pos[X] < size/4.0*3.0 && pos[X] > size/4.0 && pos[Y] < size/4.0*3.0 && pos[Y] > size/4.0) // Check the center square			
			return false;
		else if(pos[X] < 0 || pos[Y] < 0 || pos[X] > size || pos[Y] > size) // Check outer square			
			return false;
		return true;
	}