Picking tiles that match neighbors