Change maxWord to maxInt, since the type is Int