PhysicsEngine class now enforces primitive collision detection and resolution