unit cooldown bar and bug fixes

- a visible unit cooldown bar is added for both players
- the unit duplication bug has also been corrected
- minor refactoring of how cooldowns work slimmed down code some as
well.