Separate drawing and debugging tools from algorithm source