protected static Board convertIndexMatrixToBoard(int[]v, int numberOfPlayers, int boardSize) throws BoardException{
        Board b = new Board(boardSize);
        int player=1;
        for(int x: v){
            b.placeBall(player, (int) Math.floor(x/b.getSize()), x%b.getSize());
            player++;
            if(player>numberOfPlayers){
                player=1;
            }
        }
        return b;       
    }