In level 6, if you have no more movement possible in one of the bottom squares with remaining yellow squares, you can not win. Still, the game continues until the time is up. You should either provide a way to shuffle the tiles, or detect this situation and end the game.