Fixes #10 and Fixes #11

Longs are 4 bits in 32 bit architecture, but 8 bits in 64 bit architecture.  ints are 4 bits either way.  Fixes both the messed up screen, and crashes from out of bounds memory access.