small refactoring
gui changed from console to JavaFX