Desync fixes

Fixes desyncs caused by rapid changes to the game state. Process
important stuff on the server only, sync with the clients afterwords!