Improve security in playing quiz

Fixes #32.