Modified GetColor

Made it more efficient by using TryGetValue