- I'm not sure this is possible or not in a browser, much less a mobile one - But if it is possible, then try to solve the board using heuristics - Save the number of moves - When the user submits his solution, rank it compared to that number and award a high score