Updated cooldown code

Works much more efficient now! Placed the timer in gameloop so when a
hero's abilityUsed is true, it will activate the timer and reset the
timer when it's done.