fixes cancel/speedtie

fixes canceling in the menu and adds a random number generator to
resolve speed ties.