public Vector2f getDir()
	{
		float x = (int) (goalPosition.x-currentPosition.x);
		float y = (int) (goalPosition.y-currentPosition.y);
		if(x < 0)
			x = -speed;
		else if(x > 0)
			x = speed;
		if(y < 0)
			y = -speed;
		else if(y > 0)
			y = speed;	
		if(x == 0 && y == 0)
		{
			if(goalPosition == startPosition)
				goalPosition = endPosition;
			else if(goalPosition == endPosition)
				goalPosition = startPosition;
		}			
		return new Vector2f(x,y);
	}