Add 'end' to OnReward event and put mapannounces to a subroutine