Made serialise adn deserialise code for playerstate
player state will force locations, rotatio and velocity to update on deserialisation