moved update function into the draw function, added checks to keep bots in canvas