improved the scala turtle generation