public void setInitialPositions(Player... players) {
        // this method fills the board with the pieces of the players that play
        // the game.
        if (players.length == 2) {
            fillTriangle(1, players[0].getColor());
            fillTriangle(4, players[1].getColor());
        }
        if (players.length == 3) {
            fillTriangle(1, players[0].getColor());
            fillTriangle(3, players[1].getColor());
            fillTriangle(5, players[2].getColor());

        }
        if (players.length == 4) {
            fillTriangle(1, players[0].getColor());
            fillTriangle(2, players[2].getColor());
            fillTriangle(4, players[1].getColor());
            fillTriangle(5, players[3].getColor());

        }
        if (players.length == 6) {
            fillTriangle(1, players[0].getColor());
            fillTriangle(2, players[1].getColor());
            fillTriangle(3, players[2].getColor());
            fillTriangle(4, players[3].getColor());
            fillTriangle(5, players[4].getColor());
            fillTriangle(6, players[5].getColor());

        } else {
            System.out.println("fail");
        }
    }