Major change to emulator; added game engine tests