Revert "Cleaned and formatted the code."

This reverts commit 3955522b56927b5bcfb2a67c84dd20349f273b34.
Added the AbilityManager class.
Merge branch 'AbilityManager'