guardians and traps separated from the main file; some optimization on setTrap function.
guardians and traps separated from the main file; some optimization on setTrap function.