Whether you're buying or selling, working with an agent can help you secure a better deal while avoiding mistakes and delays.