An oscillating dynamic model of collective cells in a monolayer