I added some more comments to clarify how it all works (hopefully). You should probably read up on instance variables and booleans in the manual. 'For loops' as well, if you're not familiar with how loops work.
Anyway, if there's anything specific you need explained, just ask.
More commented .capx: BridgePatrol_Comments.capx (r95)