Update legIK.py

Added state storage and Offset movement