Updated game loop server-side and put some json handling (to finish) on
the client.