added some smarter bot stuff, currently not working; additions are marked