Segfaulting while printing 72x72 grid