public void guiActionPerformed(int elementId, int action) {
		if(elementId == list.getId()) {
			switch (action) {
			case 0 :
				close();
				break;
			case 1:
				game.getWorld().writeToFile();
				break;
			case 2:
				close();
				game.showGui(new GuiMainMenu(game, Game.WIDTH, Game.HEIGHT));
				break;
			case 3:
				System.out.println("The game has been quit!");
				close();
				System.exit(0);
				break;
			}
		}
	}