refactor flag and reset all players when someone scores