Function for turning char array into a mine set