public static Direction getDirection(int n) {
		switch (n) {
		case 1: return NW;
		case 2: return N;
		case 3: return NE;
		case 4: return W;
		case 6: return E;
		case 7: return SW;
		case 8: return S;
		case 9: return SE;
		default: return NONE;
		}
	}