public void chooseDirection()
  {
    if (this.walkType == 0)
    {
      if (probabiltyA >= (Math.random() * 100))
      {
        // chooses a random direction to move in
      }

      else
      {
        // no movement
        chosenDirection = 0;

      }
    }
    else
    {
      // line walk type movement
      if (probabiltyA >= (Math.random() * 100))
      {
        // chooses a random direction to move in
        chosenDirection = (int) (Math.random() * 8) + 1;
        System.out.println(probabiltyA);
      }

      else
      {
        // same movement
        chosenDirection = previousDirection;
      }
    }
  }