Fixed function endLevel()

window.currentmap is no longer a thing, but MapsManager.getMapName() is.
The game still pauses, unfortunately.