Things were wrong, go bad if you increased mapsize

Some of the array stuff was indexed wrong, but worked since width and
height were the same.