Code for Capturing Flags is Wrong?

No description
Continue to help post