Originally by Shiru, an NES game written in C