title: Simple collsion not working to the left or top
body: <p>This should be a very easy question, basically I have two squares, and I'm trying to see if they overlap. So far I've figured out the right and bottom collisions, but I can't figure out collisions from the left and top. Here's my code:</p>
  
  <pre><code>if (e.getX() &gt;= player.getX() &amp;&amp; e.getX() &lt;= player.getX() + Entity.SIZE &amp;&amp; e.getY() &gt;= player.getY() &amp;&amp; e.getY() &lt;= player.getY() + Entity.SIZE) {
     return true;
  </code></pre>
  
  <p>Let e be the entity that I'm checking and Entity.SIZE be the size for both the squares. What am I doing wrong?</p>