Coexistence of competitors in patchy environment with and without predation