Role-playing game utilizing state machine & JavaFX