fixed a bug where initial position was not set and implemented flee