modal opening when game ends and all email notifications setup