updating for rudimentary AI