created main function in Playgame class