The Dungeon modified from FORTRAN to C