Refactored poker game related to own project