public void move() 
	{
		xloc += dx;
		yloc += dy;
		if (dx != 0 && Math.abs(dx) != speed)
			dx = dx / Math.abs(dx) * speed;
		if (dy != 0 && Math.abs(dy) != speed)
			dy = dy / Math.abs(dy) * speed;
		if (cooldown == 900)
			speed = speed / 2;
		if (cooldown != 0)
			cooldown--;
	}