Fucntion for drawing arrows