@Override
		public void init() 
		{
			//Platform independence for swing look and feel
		    try 
		    {
				UIManager.setLookAndFeel(
				        UIManager.getCrossPlatformLookAndFeelClassName());
			} 
		    catch (ClassNotFoundException | InstantiationException
					| IllegalAccessException | UnsupportedLookAndFeelException e) 
		    {
				e.printStackTrace();
			}

			//setting up height and width 
			appletWidth=1000;
			appletHeight=616;
			
			//Applet setup and add KeyBoard Listener
			this.setSize(appletWidth, appletHeight); // width, height
			this.setBackground(Color.BLACK); 
			this.setFocusable(true);
			kListenerA=new KeyboardListenerA();
			this.addKeyListener(kListenerA);
			kListenerB=new KeyboardListenerB();
			this.addKeyListener(kListenerB);
			
			//setting up component panels
			mainMenuPanel = new MainMenuPanel(appletWidth, appletHeight);
			storyPanel= new StoryPanel(appletWidth, appletHeight, kListenerA, kListenerB);
			helpPanel= new HelpPanel(appletWidth, appletHeight);
			
			//Start the thread
			Thread thread= new Thread(this);
			thread.start();
		}