adding jump features and  calling the update function based on socket input