Added a change for the base case in is_power