test function of playGame2() when input is equaled to random