public void move(int xa, int ya)
	{

		if(xa > 0) dir = 1;
		if(xa < 0) dir = 3;
		if(ya > 0) dir = 2;
		if(ya < 0) dir = 0;


		collided = false;

		mobCollision();

		if(!tileCollision(xa, 0) && !collided)
		{
			x += xa;
		}
		if(!tileCollision(0, ya) && !collided)
		{
			y += ya;
		}
	}