Implementing a logo style drawing program in Scala and Processing