NetHack 2.2a/search.c