A Game Mechanics Approach to Learning and Assessment in Games for Learning