convert 2d tile based maps to 0's and 1's