@Ray1848 It appears that this is a self-contained rental space in the lower part of the house that you live in. Did you apply for a building or zoning permit to turn it into a separate apartment? Or did you just do up your rec space? Is there an internal access door to the ground floor that is locked but is otherwise useable to access the basement apartment? If so, then your dwelling may not be considered by the local zoning authority as two separate spaces in a single residential neighborhood and may be actually in compliance. Check to see what may have thrown you into the non-compliant status. Was it the stand alone stove/oven? If so, remove the stove and install a 2 burner cooktop and a convection microwave. Read about "second" kitchens/bars in basement rec rooms.
We used to live in a residential neighborhood of single family homes. When the housing bubble burst, a lot of our neighbors renovated their basements as rentals. As long as there was an access door to the upstairs, NO oven and 2 induction burners in the cooktop, the basement "apartment" was just an upgraded recreation room/wet bar. Check your zoning.