Basic AI play function

will improve... soon.