How to change the color of face from a obj file

Unfortunately, this code is outdated. Try it with the approach discussed in: How do I change a IcosahedronGeometry object's face with a click? - #2 by Mugen87