added own implementation of recusive coin search