refactored the tile map class, however, it still needs some more work and cleanup