@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		Object source = e.getSource();
		String command = e.getActionCommand();
		
		if(command.equals("Exit"))
		{
			exitApplication();
		
		}
		else if (command.equals("Save"))
		{
			Serialize s = new Serialize(p, l);
			s.saveToFile();
		}		
		else if (command.equals("Undo"))
		{
			if(!p.isDead())
			c.execUndo();
		}
		else if (command.equals("Redo"))
		{	if(!p.isDead())
			c.execRedo();
		}
		
		else if (command.equals("Help"))
		{
			String message = "Click to perform actions.\n\n"
					+ "Click the north wall to move north\n"
					+ "Click the west wall to move west\n"
					+ "Click the east wall to move east\n"
					+ "Click the blue triangle to move south\n\n"
					+ "Click on item chest \t\t- opens dialog with list of items on ground and lets you select which one to pick up\n"
					+ "Right Click \t\t- opens dialog with list of player's inventory items and lets you select which one to drop\n\n";
					
			JOptionPane.showMessageDialog(null, message, "Help", JOptionPane.INFORMATION_MESSAGE);
		}
	
	}