Modified Mandelbrot.java for tasked management