Check possible moves on empty tiles instead of all tiles.
Cleanup old code.