Rewrite montecarlo_one_packet and montecarlo_one_packet_loop to work with the rpacket_t structure (get's stuck in an infinite loop though)