Check end condition on new deck state
Merge branch 'master' of https://github.com/Reimerei/patternMatching