 if (P0^0==d4)
 if (back1==d5) 
 if (back2==d6)