fixed bugs and logging for single player, logging for multiplayer done