Made some changes to the physics class