Fixed array out of bounds bug.

This occured when the shape was near the edge of the board and both arrows and rotation buttons were pressed.