public static void main(String[] args) {

//        // Testing
//        try {
//            Scanner scanner = new Scanner(new File("\\Weapons\\Swords\\Wooden Sword.csv"));
//            Sword sword = new Sword(scanner);
//        }
//        catch(FileNotFoundException e) {
//            System.out.println("File not found");
//            System.exit(-1);
//        }
//
//
//        System.exit(0);

		// Initialize JFrame stuff
		JFrame frame = new JFrame();
		// Introduce the game
        String initialOptions[] = {"New Game", "Load Game", "Quit"};
		int initialChoice = JOptionPane.showOptionDialog(frame, "Welcome to RPG!", "Choose an option",
                                                        0,
                                                        JOptionPane.QUESTION_MESSAGE,
                                                        null,
                                                        initialOptions,
                                                        "New Game");

        // Quit game
        if(initialChoice == 2) {
            quitGame();
        }

        // Load game
        if(initialChoice == 1) {
            // Load the player
            Player player = loadGame();
            // Start the game with the loaded player
            mainMenu(player);
        }

		// Ask what character the player wants
		String characterOptions[] = {"Warrior", "Rogue", "Sorcerer"};
		int characterClass = JOptionPane.showOptionDialog(frame, "What type of character would you like?",
				                                          "Choose a class.",
				                                          0,
				                                          JOptionPane.QUESTION_MESSAGE,
				                                          null,
				                                          characterOptions,
				                                          "Warrior");


        // Ask for character name
        String playerName = JOptionPane.showInputDialog(frame, "What is your name?");
				                     
		// Create the character
		Player player;
		switch(characterClass) {
			case 0: // Warrior
				player = new Warrior(playerName);
				break;
			case 1: // Rogue
				player = new Rogue(playerName);
				break;
			case 2: // Sorcerer
				player = new Sorcerer(playerName);
				break;
            default: // Use warrior by default
                player = new Warrior(playerName);
                break;
		}


        // Main loop
        while(keepPlaying) {
            mainMenu(player);
        }

        // End game
		quitGame();
	}