Using 'enter' to step through algorithm
Added parameter 'close' to method drawPath() of Painter and its implementations
Chan's algorithm works principally