Added the dealer logic, also word wrap some of the comments