Fixed a bug, with map array overflow upon map rendering, tracked down via Valgrind