public void actionPerformed(ActionEvent e){
		
		if(drawing.frame <29){
			drawing.frame++;
		}else{
			drawing.frame=0;
		}
		
		
		if(startTime==true){
			time++;
		}else{
			time=0;
		}
		
		MenuSelect.menuItems = MenuSelect.Dmenu.get(MenuSelect.menu);//if out of bounds errors here then create menu is doing something wrong
		MenuSelect.background(MenuSelect.menuItems);
		
		if(MenuSelect.play == true){
			
			//gen.render();
			
			if(control == true){
				
				imgs.add(new Sprite(ImageLibrary.HUD,0,0));
				
				RiftGraphics.drawText.add(new TextPoint("HP",24,20,new Color(100,255,20)));
				
				for(int a=0; a<120;a++){
					
					imgs.add(new Sprite(ImageLibrary.HP,111+a,0));
					
				}
				
			}
			
		}
		
		if(MenuSelect.selectPos > MenuSelect.menuItems.options[MenuSelect.dialogNum] -1){//makes it so you can not choose higher or lower than the amount of options
			
			MenuSelect.selectPos = 0;
			
		}else if(MenuSelect.selectPos < 0){
			
			MenuSelect.selectPos = MenuSelect.menuItems.options[MenuSelect.dialogNum] -1;
			
		}
		
		select.Menu(drawing.frame);
		
		gen.update(MenuSelect.player);
		
		for(int a=0;a<RiftGraphics.image.size();a++){//adds all the images given from RiftGraphics into an arraylist of sprites
			
			img = new Sprite((BufferedImage)RiftGraphics.image.get(a),(int)(RiftGraphics.imageX.get(a)),(int)(RiftGraphics.imageY.get(a)));
			imgs.add(img); 
			
		}
		
		MenuSelect.setup(MenuSelect.menuItems);
		
	    new Thread(new Runnable(){//starts a new thread
	    	public void run() {
	    		
	    		drawing.repaint();//uses the repaint from the RiftGraphics class
	    		
	    	}
		      
	    }).start();
	    
	}