Refactored playGame class