@Override
    public void update(MiniGame game)
    {
        if (calculateDistanceToTarget() < INTERSECTION_RADIUS)
        {
            stopMovingToTarget();
            
            if (pathIndex < path.size() - 1 && currentIntersection.open)
            {   
                Road roadInBetween = ((pathXDataModel)game.getDataModel()).getRoad(currentIntersection, path.get(pathIndex+1));
                if (roadInBetween != null && roadInBetween.open);
                {
                    pathIndex++;
                    updatePath(game);
                }
            } else if (currentIntersection.open)
            {
//                Road roadInBetween = ((pathXDataModel)game.getDataModel()).getRoad(currentIntersection, path.get(pathIndex));
//                if (roadInBetween != null && roadInBetween.open)
//                {
                    pathIndex = 0;
                    updatePath(game);
//                }
            }
            
        }
        super.update(game);
    }