Move the game logic to the server. (30m)