Fixing several crash bugs and multiplayer process