If you remove line 37 in mapmaker.cpp, then it works... but why is a printf statment messing up runtime??