manual merge - alt vers to main file

still contains line debugging - remove for final
TurnRecorder added, output working

alt version deleted after manual merge; some debug lines still to remove