well, yes, the ottoman empire decided to visit hungary, and they enjoyed themselves so much that they didn't leave for 150 years. that's plenty of time to pick up some words from them.
it is also probable that sometime before coming to where hungary is now, the hungarian tribes lived together with turkish or related-to-turkish tribes.
here you can find a list of turkish-origin words in hungarian (scroll down a bit): https://hu.wikipedia.org/wiki/T%C3%B6r%C3%B6k_j%C3%B6vev%C3%A9nyszavak_a_magyar_nyelvben
I see so far that 'az' is used with a non-living thing, and 'a' is used with living things, like a girl in this example sentence. Is this a usable observation?
Thanks for the tip!:) It's like the rule of A & AN in English with vowels