Angularjsfy game mechanics