A mathematical model of cell migration and deformation in various situations