If Distance is between X and Y
Counter = 0
Do Untill the counter = 1
Award Bonus
Counter = Counter + 1
Loop
Else If Distance is Between Z and A
Counter = 0
Do Untill the counter = 1
Award Bonus
Counter = Counter + 1
Loop