apologies if this has been covered
If you live in a cat dense area micro chip your cat and buy an electronic catflap cat wars can be stressful with nightly invasions by the enemy who will probably shit in your house.
if you keep a small patch of garden dug your cat will use it and not piss of the neighbors or a pile of sand/sandpit easy to clean.
Cat problems are nearly allways caused by stress and often by children its not a toy.
And enjoy,
the most wonderful relationship I have had was 18 years of the same cat he outlasted the wife never judged me and was always there.
when i worked nights he was waiting at the end of the garden every night for my return , we moved 11 times and changed countries i lost him twice once for 10 days and posted a 200 euro reward for his return worth every penny, cost me less than that in vet bills his entire life and broke my heart this year when he died.