Maybe have a check when two hitboxes are being clicked, that measures which hitbox’s origin is closer to the cursor. For a 2D that shouldn’t be too difficult thankfully. I hate doing that in 3D.
But considering that’s the only complaint I have, I enjoyed it!