What is wrong with my logic?
<pre><code>if(location[0] &lt;= 'H' || location[0] &gt;= 'A' 
&amp;&amp; location[1] &lt;= 8 || location[1] &gt;= 1)
</code></pre>

<p>I am checking to see if the first indice is between 'A' and 'H' and the second indice is between 1 - 8. </p>

<p>so the argument would = 1 if the user entered { A, 1 }
-1 if the user entered { J, 1 }</p>
