public static void testPlay() {
		while (true) {
			final Key key = engine.getDisplay().readKeyInput();
			if (key != null) {
				switch (key.getKind()) {

				case ArrowLeft:
					engine.swipe(Engine.D_LEFT);
					break;

				case ArrowRight:
					engine.swipe(Engine.D_RIGHT);
					break;

				case ArrowUp:
					engine.swipe(Engine.D_UP);
					break;

				case ArrowDown:
					engine.swipe(Engine.D_DOWN);
					break;

				/*
				case PageUp:
				engine.undo();
				break;

				case PageDown:
				engine.redo();
				break;

				 */

				case Escape:
					engine.closeDisplay();
					System.exit(0);
					break;

				default:
					break;
				}
			}
		}
	}