Snake game in Kotlin using JavaFX