added a sleep to miner.py