added optimization to limiting opponents moves