@Override
		public void actionPerformed(ActionEvent e) {
			for(int i=0; i<10; i++){
				if(levelItems[i]==e.getSource())
				{
					canvas.load(i);
					break;
				}
			}
			if(reset == e.getSource())
			{
				canvas.reset();
				
			}
			if(load == e.getSource())
			{
				int returnVal = fc.showOpenDialog(null);
				 
	            if (returnVal == JFileChooser.APPROVE_OPTION) {
	                File file = fc.getSelectedFile();
	                //This is where a real application would open the file.
	                canvas.load(file);
	            } else {
	            	System.out.println("They canceled");
	            }
			}
			if(exit == e.getSource()){
				System.exit(0);
			}
			/*Display the rules of the game*/
			if(helpMenu == e.getSource())
			{
				JOptionPane.showMessageDialog(null, "Click on a piece to move it. Get the red piece to move to the 5th column and you have won.");
			}
			if(hint == e.getSource())
			{
				JOptionPane.showMessageDialog(null, canvas.getHint());
			}
		}