resize example grid to 4x4
generalize shapeX and shapeY to setShape event, change edge event to be on mousedown
simplify shape input names
create proper edge event handler, improve existing code, handle subsequent mousemove and mouseup
get click and drag to resize shape working