public int getNoValidMoves(int player)
    {
        int cnt = 0;
        
        if (player == 1)
        {
            for (int i = START_S; i <= END_S; i++)
            {
                if (board[i] > 0) cnt++;
            }
        }
        else
        {
            for (int i = START_N; i <= END_N; i++)
            {
                if (board[i] > 0) cnt++;
            }
        }
        
        return cnt;
    }