Completed isValidWord and calculateHandlen functions