private void checkArguments(Set<AbstractStartingHand> startingHands, int numberOfSimulations, PokerGameType gameType) {
        if (startingHands == null) {
            throw new IllegalArgumentException("Starting hands list can't be null.");
        }
        if (gameType == null) {
            throw new IllegalArgumentException("Game type list can't be null.");
        }
        if (startingHands.size() < 2) {
            throw new IllegalArgumentException("There must be atleast two starting hands.");
        }
        if (numberOfSimulations < 1) {
            throw new IllegalArgumentException("Number of simulations must be positive");
        }
        for (AbstractStartingHand hand : startingHands) {
            if (hand.getGameType() != gameType) {
                throw new IllegalArgumentException("Hand " + hand + " has the wrong game type");
            }
        }
    }