updated Turtle.java .update method