The concept is great. Wish someday I come up with an idea like this. But the app hangs a lot or maybe bot is unable to decide which move to make. Hope you guys are not using backtracking for this, please optimise the algorithm