Use the same colored stars do defeat the incoming zombies. The last star can defeat any zombie, but is single use, except for yellow zombies. You cannot put rainbow stars in the pool.
Thanks to PVZ for the idea, and me for the code and artwork (Terrible, I know).