<p>You are playing a game with integers. You start with the integer <code>1</code> and you want to reach the integer <code>target</code>.</p>
<p>In one move, you can either:</p>
<ul>
<li><strong>Increment</strong> the current integer by one (i.e., <code>x = x + 1</code>).</li>
<li><strong>Double</strong> the current integer (i.e., <code>x = 2 * x</code>).</li>
</ul>
<p>You can use the <strong>increment</strong> operation <strong>any</strong> number of times, however, you can only use the <strong>double</strong> operation <strong>at most</strong><code>maxDoubles</code> times.</p>
<p>Given the two integers <code>target</code> and <code>maxDoubles</code>, return <em>the minimum number of moves needed to reach </em><code>target</code><em> starting with </em><code>1</code>.</p>