Removes the effect with maximum priority and returns it.
Acts nearly the same than using remove or poll.
the effect with maximum priority