private int CalculateNumberOfSpotsToGive(int spotsLeft, int wantedSpots) { int spotsToGive = 0; if (wantedSpots > spotsLeft) spotsToGive = spotsLeft; if (wantedSpots <= spotsLeft) spotsToGive = wantedSpots; return spotsToGive; }