drawing done, still debugging alg