Player.cs updated

transforms are replaced by rigidbody.velocity