prototype for coloring hexs