public int get_direction(int old_x, int old_y, int new_x, int new_y) {
		if(old_x < new_x) { //East move		
			if(old_y < new_y) { //South
				return 4;
			} else if (old_y > new_y){
				return 2;
			} else {
				return 3;
			}
		} else if (old_x > new_x) { //West move
			if(old_y < new_y) { //NORTH
				return 6;
			} else if (old_y > new_y){ //South
				return 8;
			} else {
				return 7;
			}
		} else { //NORTH OR SOUTH
			if(old_y < new_y) { //NORTH
				return 5;
			} else {
				return 1;
			}
		}
	}