A Game-Theoretic Analysis of Games with a Purpose