Logic:

changed logic_update_bot_state interface
testing check and error features from debug.h