Memory

Took a look at Tibbett's code, implementing some of his check array
code into my own.