Coding the PhysicsEnginePlayMode class