a chip 8 emulator written in c++