Simplify the way the classes are set for the different tile values