start implementing AI stuff