Press the green flag for new shapes use the mouse and click to move the red one use the mouse and space to move the blue one
I tried to keep it as simple as possible and allow for readability. This works on all polygons (Concave and Convex). This algorithm has gotten better, the next version will be the best, trust If you have questions, just comment