Trevor's addition that makes tanks go towards the closest flag and, once retrieved, return to base. It also makes sure if one tank captures a flag, the other tanks move on to the next closest flag.