An Artificial Intelligence for the Card Game Cribbage