Changed the Array<{name:String, color:Int}> to a Map<String, Int>