Fixed some bugs. Only thing left is that it isn't following the "only one color per vertex" constraint.