fix clickedCell not always displaying correct