Attemping to add flag grabbing, changed autos

currently in the middle of adding support for flags to be grabbed by
players. also changed all of the ranged for loops to use auto& instead
of auto so objects aren't copied and are used by reference instead.