working version of pokerdice challenge; built from outline provided in Codeup challenge