Worked on making the player code more stable in multiplayer.