Server code and game state synchronisation now working (bit slow).