some code cleanup
implemented attacks with global cooldown