Fixed array indexing error

Fixed indexing error that occurred while adding bots