Integrated the 'HashableRect' type into the 'PhysicalState' type to support collision detection.