Finish up resistance function, go back to main menu when done
Fix bug where an incorrect suffix would cause inf. loop