Made horizontal and vertical line draw working