An adventure game engine written in an expert system