Updated hash table, with error checking for setColor()