fixed pathfinding

- fixed grid generation, added padding
- added bot state