fixed resetting current and length in hasWon