Check if something is outside of map before checking if closed.
Merge branch 'master' of github.com:/hansfilipelo/MapMaster2001