Made the map drawer work with any map size