Discovered bug in open() with left/right/top resulting in array out of bounds error
Updated the open() method by creating shiftXY() and modifying xyTo1D