Performance improvement

I could however not make it work for 150x150 maps. I can try to make it
faster with some smarter datastructure