dragon sprite flips when changing directions on the x axis