1. add debug options to cmakelists \n2. make right master tile search aithm \n3. small refactoring of map loading
fix minimap