Initial version. Still has game-specific code.