Game engine using JavaFX2