fixed the drawing of squares

now when you enter coordinates of squares, it draws them in the right
place