Fix getCellAt for non square grid

x is a column number and y is a row one.