Add gamerule module. Add GameEnd event in events.py