An algebraic puzzle game