adds handling exit when game ends. adds user input check when applying event to the specified cell.