add endofGame in Playgame