Prevent touching corners (JS Game)
<p>How can I prevent this map generator from creating touching corners like this:</p>

<pre><code>-X
X-
</code></pre>

<p>Or</p>

<pre><code>X-
-X
</code></pre>

<p>Here is a simplified example of the generator: <a href="http://jsfiddle.net/fDv9C/2/" rel="nofollow">http://jsfiddle.net/fDv9C/2/</a></p>
