So I made it grab flags and go back to base. Not sure how fast it is because my connection to EWS is terrible. I tried to make comments to explain what I'm doing but I'm a little drunk so I may have made some mistakes. Feel free to modify what I've done to make it better