Sample code for http://joaomdmoura.github.io/gioco/