changement level.js -> distance