Added code to reverse the direction s sprite is drawn if it is moving backwards