made dungeonCore code platform independent