I think you need add a "return" statement that will return the number of moves from each function call. Then, add them number returned from the "lower" call to the number from the "current" call and pass that total to the next "higher" call until finally you return the total to main...?