Made variable names consistent and passed testDeal