- if (game.state.galaxy[w.x][w.y].klingons or withprob(0.25)) and \
- not game.state.galaxy[w.x][w.y].supernova and \
- game.state.galaxy[w.x][w.y].klingons <= MAXKLQUAD-1 and \
- not w in game.state.kcmdr[:i]:
+ if not welcoming(w) or w in game.state.kcmdr:
+ continue
+ if (game.state.galaxy[w.x][w.y].klingons or withprob(0.25)):