You should hire an agent who will act as your "buyer's" agent. It involves a small fee, but the agent will then work directly for you and only you. Otherwise, any agent is required by law to represent the seller and to promote the seller's interests.
The seller of the house will pay both agents through the commission charged. If the commission is 6% of the selling price, the fee is then split between the listing agent and the selling agent. You are not involved in the payment other than by setting the selling price with your offer.
On your part, you agree to use the buyer's agent and not to purchase a property without using his or her services. Be sure to interview three different agents (if time allows) before making your selection. Every agency publishes their "Top Agent" promotion for both listings and sales. You can select from that or from word of mouth if you have friends or family in your new area.
Before you make your selection, go to Realtor.com and check out the various areas in which you might be interested. You can see who is active in that market and what types of properties are offered.
When interviewing your prospective agent, be sure he gives you confidence that he'll be able to do the job. If he is constantly answering a cell phone or seems otherwise distracted, or if he is too intent upon telling you all about himself, move on to another choice. He should give you the feeling that you are the most important job he has right now.