add rudimentary AI and implement moving ranges