# File lib/libttc.rb, line 489
  def next_player!
    original_player = @current_player
    begin
      if @current_player == @players[-1]
        @current_player = @players[0]
      else
        @current_player = @players[@players.index(@current_player) + 1]
      end
    end while (@pieces.values.select {|p| p.colour == @current_player}).all? {|p| p.captured} and @current_player != original_player
    @current_player
  end