Now I understand the question. No there is no check if there is a solution for the current tiles. But you can also use the well to trade tiles. And also restart by pressing ESC and then R.
Oh I wondered why the well was there, that's cool. I like that
Edit: after finding out about the well, I got to 55, really addicting game. Love it.