Added end of game popup in on_pressed_cells function