public static int[] getLocationOfAdjacentCell(int x, int y, int direction) {
		int[] pos = {x, y};
		switch(direction) {
		case 0: 
			pos[0]++;
			break; //(x+1, y)
	    case 1: 
	    	pos[0]+=y%2;
	    	pos[1]++;
			break; //if even(y) then (x, y+1) else (x+1, y+1)
	    case 2: 
	    	pos[0]+=y%2-1;
	    	pos[1]++;
			break; //if even(y) then (x-1, y+1) else (x, y+1)
	    case 3: 
	    	pos[0]--;
			break; //(x-1, y)
	    case 4: 
	    	pos[0]+=y%2-1;
	    	pos[1]--;
			break; //if even(y) then (x-1, y-1) else (x, y-1)
	    case 5: 
	    	pos[0]+=y%2;
	    	pos[1]--;
			break; //if even(y) then (x, y-1) else (x+1, y-1)
		}
		return pos;
	}