public void simulationStepSetUp()
        {
            rover = new Vehicle(mapManager);

            simulationInProgress = true;
            stepSet = true;

            rover.startTraverse(startX,startY ,targetX,targetY);
        }
 public void nextStep(int startX , int startY , int endX , int endY)
 {
     if (pathGenerated == false)
     {
         if (stepTraverseStarted == false)
         {
             rover = new Vehicle(mapManager);
             rover.startTraverse(startX, startY, endX, endY);
             stepTraverseStarted = true;
         }
         else
         {
             rover.traverseMapDStep();
             imageSource = rover.getPathImage();
             if (rover.reachedTarget())
             {
                 pathGenerated = true;
             }
         }
     }
 }