setting up visual simulator using JavaFX