Refactored to make Scoreboard a class instead of a member of Stage
Refactored code to use iterators and for each where possible