First time working with javafx and kryonet... code is really messy but it works