private static Direction randomDirection() { return Direction.values()[(int) (rnd.nextDouble() * 8)]; }