modify CoolGamelMain with new syntax of using HashMap