Optimizes and refactors Konami Code matching logic

Only store the last ten keystrokes, since the code is ten keystrokes long.

Fixes #2.