Fixed a couple bugs in getting and setting tiles where division by
tilesize would happen twice causing the shaders to render the level
scaled by a factor of 8 (tilesize)

Also fixed human error in width counting in the testlevel file


Added a writeTiles(path) function to Level.java for debugging purposes