refactor: calculate 1-dimensional array (cell index) from x and y by
using public static method on Cell