Created functions for selecting neighbors at random and drawing lines between them