change variable name; separate scoreboard and tile updates
changed flag to do_flag