declare let x1: number; declare let currentPos: number;