Update Tilemap - ERRORS REMOVED HECK YEAH~

I also refactored a bunch of stuff.

PS: The error was in loadTiles. I forgot to initialize the tilesByID ArrayList before trying to add stuff to it. Whoops.