Learning Backflips in the foam pit