You can create the priority rules with the visual scripts.
If you want you can send me the JSON of your game in the EasyGameMaker Discord channel, that I can check and try to help.
To export to JSON format, click on the "Export" button, and then click in the "Download JSON".
To send me the JSON... I think it's not possible to send attachments here in "itch.io", but you can send me in Discord (https://discord.com/invite/2ueUqGBMYE). Or you can send it to Filebin (https://filebin.net/) and share the URL here.