3839404142434445464748
final int nrOfGhostMovesToWait = 10; Thread.sleep(nrOfGhostMovesToWait * AbstractGhostMover.DELAY); // and attempt some moves again. eventHandler.down(); eventHandler.stop(); eventHandler.start(); eventHandler.right(); // and we're done. eventHandler.exit();