fix bugs, improve leon ai