public static int oppositeDirection(int currentDirection)
	{
		switch(currentDirection)
		{
			case 0: return 2;
			case 1: return 3;
			case 2: return 0;
			case 3: return 1;
			default: throw new DirectionOutOfBoundsException();
		}
	}