Please solve the programming task below using a self-contained code snippet in a markdown code block.

You are playing a game with integers. You start with the integer 1 and you want to reach the integer target.
In one move, you can either:

Increment the current integer by one (i.e., x = x + 1).
Double the current integer (i.e., x = 2 * x).

You can use the increment operation any number of times, however, you can only use the double operation at most maxDoubles times.
Given the two integers target and maxDoubles, return the minimum number of moves needed to reach target starting with 1.
 
Please complete the following python code precisely:
```python
class Solution:
    def minMoves(self, target: int, maxDoubles: int) -> int:
```