added playGame method
added playGame