fixed an out of bounds error in the turtle code