Make currentPos var static

currentPos is s state variable that should retain its value between
calls to loop().