added conditions to playGame