Added phase event system and fixed an exploit with the temporal sword.