Added mapSearch

added a searchMap function and implemented the body of the
tile.hasNeighbor function.