A chip8 emulator in C++