change sprite based on direction