smooth movement for boxes and ghosts