Basic bot logic

First version, just calculates one step.