This should probably be:
```C++
if (moves < 0) {
    moves = 0;
    return;
}
```
Since as is the monster could end up with negative moves, which they shouldn't.