Fatal error

I have a feeling that I'm accessing memory locations that don't exist.