title: N amount of boxes within boxes being drawn
body: <p>Here's what I am trying to replicate:</p>
  
  <p><img src="https://i.imgur.com/s7vzPrc.png"></p>
  
  <p>Currently, my code is as follows:</p>
  
  <pre><code>public void boxes() {
      setLocation(20,20);
      for(int j =0; j &lt; 5; j = j+1) {
      setLocation(20+50*j,20+50*j);
          for (int i= 0; i&lt;4; i= i+1) {
              move(600-(50*j)); 
              turn(90);
      }
    }
  }
  </code></pre>
  
  <p>and the result is: </p>
  
  <p><img src="https://i.imgur.com/6Q0HtJc.png"></p>
  
  <p>PLEASE do not write me any code, I'd highly prefer just a general explanation as to how I can make it so that the boxes being drawn do not end at the same point. I've been trying to figure it out for the past two hours with no luck and what I currently have is so far the best I've gotten. Thank you!</p>
  
  <p>This is based on <a href="http://www.greenfoot.org/scenarios/3535" rel="nofollow noreferrer">http://www.greenfoot.org/scenarios/3535</a></p>