Writing a game chat server in Kotlin