Please help me improve my drawing identifier code. How do I make my algorithm more accurate? The context of this code is in a webpage with two canvases<