Added PowerType enum and changed the power selection functions as well as added a random function for enums.