Multilayer cell proliferation with an adaptation of a cellular Potts model