Ported most of the GameScoreboardNode from Java.