public void refreshSafetySquare()
      {
      int numAdjacentTroggles = -1;

      while( numAdjacentTroggles != 0 )
         {
         safetySquareY = (int)( Math.random() * LENGTHY );
         safetySquareX = (int)( Math.random() * LENGTHX );

         numAdjacentTroggles = 0;
         for( Troggle t: gRef.getTroggles() )
            {
            if( Math.abs( safetySquareX - t.getX() ) <= 1 && Math.abs( safetySquareY - t.getY() ) <= 1 )
               {
               numAdjacentTroggles++;
               } //end if
            } //end for
         } //end while
      

      if( gRef.isActive() )
         {
         gRef.printStatus();
         } //end if
      } //end method refreshSafetySquare