Added basic support for abilities
Corrected getMouseAction for actions and minor rearrangements