Generic IA for both player