clean up multiplayer code