[FEAT] add options parsing, limits
[FEAT] add maxturn limit
[FEAT] security of setting capabilities