add physics engine to collision detection