Complex sentence: Now that they are free they wish to do some good, thinking that God might forgive them and allow them to return to Heaven.
Split into simpler sentences: Now that they are free they wish to do some good. Maybe even god can forgive them and allow them to return to Heaven.