my very non-pythonic cribbage analyzer