     beforeEach -> board = tiny_game()
 
     it 'finds the right number of black moves', ->
-      board.moves.push create_pass_move(WHITE)
+      forceNextMoveToBe(BLACK, board)
       expect(get_all_plausible_moves(board).length).toEqual 5
 
     it 'finds the right number of white moves', ->
-      board.moves.push create_pass_move(BLACK)
+      forceNextMoveToBe(WHITE, board)
       expect(get_all_plausible_moves(board).length).toEqual 4


  it 'can generate a random move on the first line', ->
    board = small_first_line_board()
    old_max_try = MAXIMUM_TRY_MODIFICATOR
    # minimize chances of falsely creating a pass move
    # (false in the context of this spec)

forceNextMoveToBe = (color, board)->
  oppositeColor = other_color(color)
  board.moves.push create_pass_move(oppositeColor)

describe 'random_move_generation', ->
  board = null

