check if things are stuck and allow them to move further apart

taken from doomretro/src/p_map.c:319-332

fixes #28