refactored turtle.cpp a bit and fixed a stupid bug I introduced earlier when getting updateState to return a state