Added rudimentary AI