new `team` attr in `Goal`.
first draft of `on_goal` and `on_undo`. not tested.