I exploited all the resources, and so, in the end, I became the last line of defense between the zombies and the house. It was too late when I realized I could plant some seeds and rocks.
P.S.: If I didn't buy something, I couldn't close the merchant menu. Maybe I missed a control.