Refactored engine to use height mapping on levels and traversability