Fixed a logic bug, and optimized a little bit.

* Fixed a bug where a bot will move to where another bot is.
* Optimized to generate action tuple instead of list.