restart
separate listen and write to client; move game state to server