nick finding algorithm (not tested)... fixed wrong sleep()'s