Writing on the first position on files unity_rotation.txt and unity_speed.txt