Intriguing math-based puzzles wrapped into a narrative game in which students work to find their lost pet — and save the world from monsters.