finalizes the capture the flag mode