Who did Philip V seek an alliance with