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.
Merge pull request #2 from Tenderfoot/master

Please pull - map array was indexed wrong all over the place