Updated bots to use dedicated bot->state for internal state.

Use GNU99, and stop using bot->item for internal state.