Homotopy and crossings of systems of curves on a surface