Maximizing Profits in different Market Structures