A patent, or invention, is any assemblage of technologies or ideas that you can put together that nobody put together that way before. That's how the patent office defines it. That's an invention.
In this business, by the time you realize you're in trouble, it's too late to save yourself. Unless you're running scared all the time, you're gone.