working on AddLine
Error handling on addLine
Fixed coordinate-checking, added SquareCaptured events