end game notification logic