Made variables more intuitive in render_map
More accurate variable naming in render_inv