Copied first version from Mimey into finished emulator
Cleaned up code in GPU