title: Java Array Index out of Bounds
body: <p>OK so I seem to be getting an Array Index out of Bounds error in a part of my code. Specifically in lines 85-102...</p>
  
  <p>My code: <a href="http://www.sosos.pastebin.com/f0JQBWui" rel="nofollow noreferrer">http://www.sosos.pastebin.com/f0JQBWui</a></p>
  
  <p>I just want it to check for blocked tiles AHEAD of time that way my sprite doesn't move in the direction it can't. This exception only happens when I am on the RIGHT or BOTTOM corners of my map.</p>
  
  <p>My GUESS of why this error happens if because when I am on the corner.. it checks for the tiles to the RIGHT and BOTTOM of it which are not there...</p>