Added option to keep track of active flags

This code hasn't been compiled so I don't know if it works but it fixes the bug where a player grabs a flag and drops it outside the zone to get unlimited shots
fixed find() call
Fixed syntax errors
Merge pull request #1 from allejo/development

Added option to keep track of active flags and it compiles