Bug in flag submission

Me and Tomás (which also has made a few comments to this code) found that the code made it possible to submit the same flag twice and receive money for it. This fixes that bug.

Btw... I haven't said it before but you have done awesome work with RootTheBox ;)