change cells from a list of lists into dictionary

cells: a dictionary, keys are index tuples and values are tile values.
this is the only way that can implement the move method in the way
instructed by the class