had changed the array of MapObject variable to a MapObjects variable
which is basically an array, you just don't need the whole array
specifier and it has different methods.