public void move(World world)
	{
		xSlow = xSlow + xSpeed;
		ySlow = ySlow + ySpeed;
		
		while(xSlow >= 100)
		{
			if(blockRight(world))
			{
				xSpeed = Math.min(0, xSpeed);
				xSlow = 0;
				break;
			}
			else
			{
				x++;
				xSlow -= 100;
			}
		}
		
		while(ySlow >= 100)
		{
			if(blockDown(world))
			{
				ySpeed = Math.min(0, ySpeed);
				ySlow = 0;
				break;
			}
			else
			{
				y++;
				ySlow -= 100;
			}
		}
		
		while(xSlow <= -100)
		{
			if(blockLeft(world))
			{
				xSpeed = Math.max(0, xSpeed);
				xSlow = 0;
				break;
			}
			else
			{
				x--;
				xSlow += 100;
			}
		}
		
		while(ySlow <= -100)
		{
			if(blockUp(world))
			{
				ySpeed = Math.max(0, ySpeed);
				ySlow = 0;
				break;
			}
			else
			{
				y--;
				ySlow += 100;
			}
		}
	}