adding dynamic end (start position, exit and map can be edit in mapX.js)