Implemented basic inverse kinematics(works while the point is within reach.)