added playgame() for standalone running