@Override
		public void run() 
		{
			//We start the game with main menu
			mainMenuPanel.start();
			this.add(mainMenuPanel);
			
			while (true)
			{
				//while in menu
				if(mainMenuPanel.getPlayClicked())
				{
					//Remove main menu from the applet
					mainMenuPanel.setPlayClicked(false);
					mainMenuPanel.end();
					this.remove(mainMenuPanel);
					//Add Story Panel to the applet
					storyPanel=null;
					storyPanel= new StoryPanel(appletWidth, appletHeight, kListenerA, kListenerB);
					storyPanel.start();
					this.add(storyPanel);			
				}	
				
			   if(mainMenuPanel.getHowToPlayClicked())
				{
					//Remove main menu from the applet
					mainMenuPanel.setHowToPlayClicked(false);
					mainMenuPanel.end();
					this.remove(mainMenuPanel);
					//Add Help Panel to the applet
					helpPanel=new HelpPanel(appletWidth,appletHeight);
					this.add(helpPanel);
				}
				

				//while in a different screen
				if(storyPanel.getExit())
				{
					//do stuff
					storyPanel.end();
					this.remove(storyPanel);
					//mainMenuPanel=null;
					mainMenuPanel = new MainMenuPanel(appletWidth, appletHeight);
					mainMenuPanel.start();
					this.add(mainMenuPanel);
				}
				else if(helpPanel.getExit())
				{
					helpPanel.end();
					this.remove(helpPanel);
					//mainMenuPanel=null;
					mainMenuPanel = new MainMenuPanel(appletWidth, appletHeight);
					mainMenuPanel.start();
					this.add(mainMenuPanel);
					
				}
				
				//Validate to Paint the a new Panel
				this.validate();
				
				try 
				{
					Thread.sleep(60);
				} 
				catch (InterruptedException e) {}
			}
				
		}