Scoreboard added

Goals are detected and there is a scoreboard.
Some data structures changed.