It works for me. Goes to main menu layout, not freezes.
However, I suggest you make these changes:
1. Replace "Is touching Home" with "On tap gesture on Home".
"Is touching" is a continuous condition, it triggers ~60 times per second, which is not good for buttons.
2. Since you are resetting global variables, no need to set individual variables to 0, you can remove all such actions (set OrangeMark=0 etc.)
3. No need for "Restart layout", since you are changing layout.
So basically your event should look like this:
On tap Home
Home is visible
...............Reset global variables
...............Go to MainMenu