public static Player createPlayerOfType(String typeName) {
        if (typeName.equals(Game.PlayerType.HUMAN.name())) {
            return new HumanPlayer();
        }
        if (typeName.equals(Game.PlayerType.COMPUTER_EASY.name())) {
            return new EasyComputerPlayer();
        }
        if (typeName.equals(Game.PlayerType.COMPUTER_MEDIUM.name())) {
            return new MediumComputerPlayer();
        }
        if (typeName.equals(Game.PlayerType.COMPUTER_HARD.name())) {
            return new HardComputerPlayer();
        }
        return null;
    }