public static int[] getWayWithDirection(int direction) {
		int[] way = new int[2];
		switch (direction) {
		case 1:
			way[0] = 0;
			way[1] = -1;
			break;
		case 2:
			way[0] = -1;
			way[1] = 0;
			break;
		case 3:
			way[0] = 0;
			way[1] = 1;
			break;
		case 4:
			way[0] = 1;
			way[1] = 0;
			break;
		default:
			way[0] = 0;
			way[1] = 0;
		}
		return way;
	}