Implement a basic AI