better ship rotation function