int zaehler=0; void main() { sammleAllesBiszurWand(); } void sammle(){ while (kornDa()){ nimm(); zaehler=zaehler+1; } } void sammleAllesBiszurWand(){ while(vornFrei()){ sammle(); if(vornFrei()){ vor(); } } if((zaehler % 2)==0){ while(!maulLeer()){ gib(); } } }