More Bugfixing

1. Fixed some issues in map_generator that led to chunk array being
51*51 (expected size 50*50)
2. Checked set_range_in_bounds, as a result of above fix, confirmed
working.