refactored block coloring, blocks to more proper setup.