Rearranged cordinate systme fro (y,x) to (x,y)
Added tests to cells