Fix issue where score filter would not show correct team

* renamed "flag" into "isForBlueTeam"
* fixed the logic for flipping the flag