public void move(int xa,int ya)
	{
		if(xa!= 0&&ya!=0)
		{
			move(xa,0);
			move(0,ya);
			numSteps--;
			return;
		}
		numSteps++;
		if(!hasCollided(xa,ya))
		{
			if(!Collision.entityCollision())
			{
				if(ya<0)
				{//up

					movingDirection =0;
				}
				if(ya>0)
				{//down
					movingDirection =1;
				}
				if(xa<0)
				{//left
					movingDirection =2;
				}
				if(xa>0)
				{//right
					movingDirection =3;
				}

				x+=xa*speed;
				y+=ya*speed;
			}
		}
	
		
	}