compute turn penalties in lua profiles
rebase on develop
make lua turn_function optional
swap turn penaltiy bias, add test
rebase on develop