Use new method to check strike.

Use new method to check strike. The order of check strike is according
to the distance between the barrier and the ball