add a try/catch exception for the main method
fixed some issues that intellij was bugging me about