Fixed the bug. Now correctly creates fractal.