in your movement functions you have set the variable with the current sprite to the new sprite that you want to display