Updated to include more inputs. Fixed small simulation error in getTurns method.