Improvements on tile recognizing