server handle incoming messages as callback (no more while(true)); game will be ran on other thread; server console waits for ESC key to exit.