new prefab using state machine
use state machine to move and wait
complete statemachine script
fix some errors