Added logic for draw line between vertex