public void moveToPoint(Point a, Point b)
	{
		reachedGoal = false;
		self = a;// new Point(x, y);
		double distance = a.distance(b);
		double steps = Math.round(distance / (speedMod * speed));
		double deltaY = Math.round((b.getY() - a.getY()) / steps);
		double deltaX = Math.round((b.getX() - a.getX()) / steps);
		int nextX = this.x;
		int nextY = this.y;
		if (Double.isNaN(deltaX) || Double.isNaN(deltaY))
		{

		}
		else if (deltaX > xRestriction)
		{
			deltaX = 1;
		}
		else if (deltaY > yRestriction)
		{
			deltaY = 1;
		}
		if (checkMove((int) (this.x + deltaX), (int) (this.y + deltaY)))
		{
			nextX = ((int) (this.x + deltaX));
			nextY = ((int) (this.y + deltaY));

			if (deltaX >= 0)
				TankPaint.baseAngle = Math.toDegrees(Math.atan(deltaY / deltaX)) - 90;

			else
				TankPaint.baseAngle = Math.toDegrees(Math.atan(deltaY / deltaX)) + 90;
			
		}
		this.x = nextX;
		this.y = nextY;
		
		double distToGoal = new Point(this.x,this.y).distance(b);
		if ( distToGoal<= 80)
		{
			reachedGoal = true;
		}
		System.out.println(distToGoal); //debgugging
	}