Quote:because some guys from my group got 35% so I don`t know what is the correct percentage
There is no correct percentage. You are using random numbers so the results should be different not just for everyone in your class, but for each time you run it (the numbers are not truly random but that is not relevant here).
That is why I suggested that you output the "moves" to the console, then you can repeat them on squared paper to check your logic.
See solution 1 for the improvements that your code needs.