got random selection and neighbor assignment figured out