Made changes to the main game loop and pvp mode