Implemented model of a cribbage game