Petri nets and AI in simulation