Completed physics engine implementation and added rotation to the PhysicsBox.