flip player sprite based on motion