Implemented XP on win in CTF

Implemented XP on win in CTF and fixed a bug in loot.py.