created toggleGod function to reduce redundancy