updated RMax Action to new requirements of implementing the getTransitions method and also added another constructor for RMaxPotential