Changed user input method from JOptionPanes to console input
Adding in comments
More comments