Added updatecell for endgame condition