ditch the matrix based code...  pacman can move though walls now, but
that'll be next... at least the strange last column problem is gone