Added tileType and neighbor checking

Tiles are only added to the tilesTouched array if they are of the same
type and are neighbors.