cribbage calculator written in C