Turning arrow's direction based on the value of the difference