added random bot, fixed some small bugs