rewrote scoreboard data structure from hashMap to array.