add play game function