changed from = board to = board.clone()