Python program to solve a mathdoku game