Fixed various strange issues in code
(import JOptionPane?!?!?!?!?!)