Function for drawing arrows