Completing the function updateHand(hand, word)