actually fixed infinite loop and run_dealer method