insertion sort but i messed it up and instead made it into a bubble sort type of thing i also made the engine SUPER fast so that it doesn't need to repeat to draw each pixel of the line and instead finishes in 1 move which makes it SIGNIFICANTLY faster.