Added the zoom and coloring algorithm