Added out of bounds handling for getTile.
Fixed out of bounds handling.
Fixed error in render code. It is now tested and accurrate. :D
Merge remote-tracking branch 'origin/RenderWork'