In freestyle mode the program decides how YOU fap based off of probabilities and previous fap commands as input for the next output state for fapping
Google "Monte Carlo" algorithm