Does this not have the possibility of going out of bounds? If `i == maps.size()-1`, then `i++` puts `i` out of array bounds. Is that possible?