Chip8 emulator for Flash