Before building any levels, you've used 0 red blocks in exactly one way (by doing nothing). For any : . You can't use red blocks without building any levels.
From here, iterate through levels and apply the transition. Base cases are where the recursion stops. They handle the simplest possible inputs directly, without making recursive calls. Every recursive function needs at least one base case, or it will recurse forever and crash.