Oh you have got to be kidding me this will take 1,073,741,823 tries to solve, IF it has a solution You should let the user pick the dimensions of the game Its fun, nice work!