public static void meleeAI(final MeleeEnemy me)
	{	
//		final int attackFrame = me.getAttackFrame();
//		final Image [] att = me.getAttackAnimation();
		final int attackFrame = 0;
		final Image [] att = null;
		final int attSpeed = me.getSpeed()/2;//need to test this might need to foul around with this or add another variable to control speed 
				
		if(!me.getHitbox().intersects(CoreClass.mainCharacter.getHitbox()))
		{	
	
			double run = me.getxPos() - CoreClass.mainCharacter.getxPos();
			double rise = me.getyPos()- CoreClass.mainCharacter.getyPos();
			
			run = Math.abs(run);
			rise = Math.abs(rise);

			//get greatest common factor
			int gcf = Mathariffic.GCF((int)rise, (int)run);		

			//gets the rise and run
			run = run / gcf;
			rise = rise / gcf;
			run = Math.abs(run);
			rise = Math.abs(rise);
		
			//gets speed based on rise run
			double chX = me.getSpeed() * run;
			double chY = me.getSpeed() * rise;

			//Divides speed in half till it reaches the max enemy speed in the x or y
			while(chX > me.getSpeed() && chX > 0 || chY > me.getSpeed() && chY > 0)
			{				
				chX = chX / 2;
				chY = chY / 2;				
			}
			
			chX = Math.abs(chX);
			chY = Math.abs(chY);			
			
			//add or subtracts based on the found change
			if(CoreClass.mainCharacter.getxPos() < run)
			{				
				run = run - chX;				
			}
			else
			{				
				run = run + chX;				
			}
			
			if(CoreClass.mainCharacter.getyPos() < rise)
			{				
				rise = rise- chY;				
			}
			else
			{				
				rise = rise + chY;				
			}				
		}
		else
		{			
			//attack animation start
			
			/*Thread temp = new Thread(){			
				public void run()
				{				
					//int attackFrame = me.getAttackFrame();
					//int [] att = me.getAttackAnimation();					
				
					for(int x = 0; x < att.length; ++x)
					{						
						if(x == attackFrame)
						{						
							WhenShitHits.MeleeEnemyAttackPlayer(me);					
						}	
						
						me.setPic(att[x]);							
						try
						{							
							Thread.sleep(attSpeed);							
						} catch (InterruptedException e)
						{
							
						}					
					}				
				}
			};
			temp.start();*/
		}		
	}